package com.hundsun.yr.universal.p2p.interactor.impl;

import com.hundsun.yr.universal.p2p.interactor.base.RequestBypeInteractor;
import com.hundsun.yr.universal.p2p.listener.BaseMultiLoadedListener;
import com.hundsun.yr.universal.p2p.utils.VolleyRequest;

import java.util.HashMap;


/**
 * @version V1.0
 * @Title: StringRequestByteInteractorImpl.java
 * @Description: string请求
 * @date 2015-11-11 上午11:16:59
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com
 * @replace author:
 * @replace date:
 */
public class StringRequestByteInteractorImpl implements RequestBypeInteractor {

    private BaseMultiLoadedListener<String> loadedListener = null;
    private VolleyRequest request = null;

    public StringRequestByteInteractorImpl(BaseMultiLoadedListener<String> loadedListener) {
        this.loadedListener = loadedListener;
    }

//	@Override
//	public void getRequestData(String task_name, String url, int event_tag,HashMap<String, String> header) {
//		
//		request=new VolleyRequest(true);
//		request.StringRequestGet(task_name, url,event_tag,header, loadedListener);
//		
//		request.StringRequestPost(task_name, url, Constants.EVENT_BEGIN, josnParams,
//				header, this);
//	}

    @Override
    public void getRequestData(String task_name, String url, int event_tag,
                               byte[] params, HashMap<String, String> header) {
        // TODO Auto-generated method stub
        request = new VolleyRequest(true);
        request.StringRequestPost(task_name, url, event_tag, params, header, loadedListener);
    }

}
